package com.hcj.admin.controller;


import com.hcj.admin.entity.TPermission;
import com.hcj.admin.entity.TPermissionVo;
import com.hcj.admin.service.ITPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 权限表 前端控制器
 * </p>
 *
 * @author HuangChangjin
 * @since 2017-10-23
 */
@Controller
@RequestMapping("/admin/tPermission")
public class TPermissionController {
    @Autowired
    private ITPermissionService permissionService;

	@GetMapping("/get/{id}")
    @ResponseBody
    public TPermissionVo get(@PathVariable("id") String id){
	    return permissionService.get(id);
    }
}
